//
//  QDIndividualModel.m
//  simulateQuickDoctor
//
//  Created by 胡卓 on 2017/3/25.
//  Copyright © 2017年 PipiXia. All rights reserved.
//

#import "QDIndividualModel.h"

@implementation QDIndividualModel

+(NSMutableArray *)gettingSettingModelArr
{
    
    
    //读取数据路径
    NSURL *url=[[NSBundle mainBundle]URLForResource:@"infoList" withExtension:@"plist"];;
    //加载到数组
    NSArray *arr=[NSArray arrayWithContentsOfURL:url];
    
    //定义数组接收模型对象
    NSMutableArray *arrM=[NSMutableArray array];
    
    //遍历数组中的每一个元素
    
    for (NSDictionary *dict in arr) {
        //转化为模型对象
        QDIndividualModel *model=[[QDIndividualModel  alloc]init];
        
        [model setValuesForKeysWithDictionary:dict];
        
        //添加到数组
        [arrM addObject:model];
    }
    
    
    return arrM.copy;
    
}
//重写description
- (NSString *)description
{
    return [NSString stringWithFormat:@"%@-%@",self.info,self.details];
}

@end
